/*
 * @Author: NaturalHulk 2066634567@qq.com
 * @Date: 2024-10-08 09:31:44
 * @LastEditors: NaturalHulk 2066634567@qq.com
 * @LastEditTime: 2025-03-06 17:04:17
 * @FilePath: /xhs-mom-new一期/src/api/warehouse/warehousing/other.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
// 列表
export function GetListAPI(params) {
  return request({
    url: '/storage/miscellaneous-receipt/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/storage/miscellaneous-receipt/add',
    method: 'POST',
    data
  })
}

// 关结
export function CloseAPI(data) {
  return request({
    url: '/storage/miscellaneous-receipt/close',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/storage/miscellaneous-receipt/update',
    method: 'POST',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/storage/miscellaneous-receipt/delete/' + data,
    method: 'DELETE'
  })
}

// 查看
export function GetDailtAPI(data) {
  return request({
    url: '/storage/miscellaneous-receipt/view/' + data,
    method: 'GET'
  })
}

// 明细列表
export function GetDailtListAPI(params) {
  return request({
    url: '/storage/miscellaneous-receipt-detail/list',
    method: 'GET',
    params
  })
}

// 查询水刺制令单列表
export function GetShuiciListAPI(params) {
  return request({
    url: '/production/spunlaceOrder/list',
    method: 'GET',
    params
  })
}

// 获取仓库
export function GetCkByIdAPI(params) {
  return request({
    url: '/production/warehouse/getCkById',
    method: 'GET'
  })
}

// 金蝶数据推送
export function pushAPI(data) {
  return request({
    url: '/storage/miscellaneous-receipt/push',
    method: 'PUT',
    data
  })
}

//打印回显
export function printViewAPI(data) {
  return request({
    url: '/storage/miscellaneous-receipt/printView/' + data,
    method: 'GET'
  })
}

// 其他入库打印
export function wipPrintAPI(data) {
  return request({
    url: '/storage/miscellaneous-receipt/wipPrint',
    method: 'POST',
    data
  })
}
